<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        table,td{border: 1px solid #000;}
        td{min-width: 100px;}
    </style>
</head>
<body>
    <a href="/add">添加学生</a>
    <table>
        <tr>
            <td>学号</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
            <td>所选课程</td>
            <td>操作</td>
        </tr>
        <% for(var i=0;i<students.length;i++){ %>
        <tr>
            <td><%=students[i].sid%></td>
            <td><%=students[i].name%></td>
            <td><%=students[i].age%></td>
            <td><%=students[i].sex%></td>
            <td><%=students[i].Kechengs%></td>
            <td>
                <a href="/edit/<%=students[i].sid%>">修改</a>
                <a href="/delete/<%=students[i].sid%>">删除</a>
            </td>
        </tr>
        <% } %>
    </table>
</body>
</html>